<?php get_header() ?>
<div id="content">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post() ?>
<!-- google_ad_section_start -->
<div class="post">
<?php edit_post_link('Edit','<p class="edit">','</p>') ?>
<h1><?php if ( get_the_title() ){ the_title(); }else{ echo "Untitled"; } ?></h1>
<?php if ( get_the_content("", false, "") ){ the_content(); }elseif ( get_the_guid() ){ echo "<p><a href=\"".get_the_guid()."\"><img src=\"".get_the_guid()."\" alt=\"Click to enlarge\" class=\"thumbnail\" /></a></p>"; }else{ echo "<p>...</p>"; } ?>
<?php link_pages('<p>More pages: ', '</p>', 'number'); ?>
</div>
<!-- google_ad_section_end -->
<?php include (TEMPLATEPATH.'/ad2.php') ?>
<?php comments_template() ?>
<?php endwhile // have_posts()?>
<?php else : // have_posts()?>
<div class="block">
<h1>Not found</h1>
<p>Sorry, but we are unable to find any article matching your request.</p>
</div>
<?php include (TEMPLATEPATH.'/ad2.php') ?>
<?php endif // have_posts() ?>
<?php //include (TEMPLATEPATH.'/ad4.php') ?>
</div>
<?php get_sidebar() ?>
<?php get_footer() ?>
